package com.bing.mapper;

import com.bing.entity.Statistical.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Author: Mr.HRL
 * @Description:
 * @Date: 2019-09-14 15:58
 * @Version: 1.0
 */
public interface StatistcalMapper {

    void productAccessAdd(ProductAccessInfo productAccessInfo);

    void exceptRegAdd(ExpectRegistereInfo expectRegistereInfo);

    int getClickBybpId(String bpId);

    int getClickByProductId(String productId);

    List<ProductAccessInfo> getProductAccess(@Param("bpId") String bpId,@Param("productId") String productId);

    List<String> checkBpProdct(String bpId);

    List<Map<Object,Object>> getListByzc(@Param(value = "startTime") Date startTime,@Param(value = "endTime") Date endTime);

    List<Map<Object,Object>> getListByyjzc(@Param(value = "startTime")Date startTime,@Param(value = "endTime") Date endTime);

    List<ProductStatisinfo> productStatis(@Param(value = "startTime")Date startTime, @Param(value = "endTime") Date endTime, @Param(value = "productName") String productName);

    void addPartyData(PartyStatisinfo partyStatisinfo);

    void updatePartyData(PartyStatisinfo partyStatisinfo);

    String getPartyDataByProduct(String productId);

    int getClickByEqtId(String eqId);

    int getClickByChannelId(@Param("channelId") String channelId);

    void channelAccessAdd(ChannelAccessInfo channelAccessInfo);

    List<ChannelStatisinfo> channelStatis(@Param(value = "startTime")Date startTime, @Param(value = "endTime") Date endTime,@Param(value = "channelName") String channelName);

    List<PartyStatisinfo> getPartyData(@Param(value = "productName") String productName);
}
